package com.teradyne.merlin2.ui.client.places;


import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;

public class OrderListPlace extends OrderPlace {

	private String placeName;

	public OrderListPlace() {
		this.placeName = "";
	}

	public OrderListPlace(String token) {
		this.placeName = token;
	}

	public String getPlaceName() {
		return placeName;
	}

	@Prefix("!" + PlacesPrefixesConstants.ORDER)
	public static class Tokenizer implements PlaceTokenizer<OrderListPlace> {

		@Override
		public String getToken(OrderListPlace place) {
			return PlacesPrefixesConstants.LIST;
		}

		@Override
		public OrderListPlace getPlace(String token) {
			return new OrderListPlace(token);
		}

	}

}
